package top.mable.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class BaseDTO implements Serializable {


    private static final long serialVersionUID = -493124165430248454L;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField
    private String createBy;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField
    private String updateBy;

    @TableField
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    @TableField(exist = false)
    private Integer pageNo = 1;
    @TableField(exist = false)
    private Integer pageSize = 10;
}
